home *** CD-ROM | disk | FTP | other *** search
- Path: news.umkc.edu!news
- From: jbestoriii@cctr.umkc.edu (John Bestor)
- Newsgroups: comp.lang.c++
- Subject: system() function question
- Date: 11 Jan 1996 22:08:03 GMT
- Organization: UMKC
- Message-ID: <4d41o3$rrb@kasey.umkc.edu>
- NNTP-Posting-Host: slip52.umkc.edu
- X-Newsreader: WinVN 0.92.6+
-
- Help! I want to run an .avi file in a program I'm writing and I know
- that I have to use the system() function. I #include <stdlib.h> file
- because I know that the system() function is defined in that header file.
- When I compile the program it gives me an error. It says
-
- error C2065: 'system' : undeclared identifier
- error C2064: term does not evaluate to a function
- CL returned error code 2.
-
- In my book it gives the example of typing DIR. In my C++ book it says to
- type system("DIR"); to do this. I adapted what they had to start the
- .avi file. I put system("c:\\movies\\ufp_logo.avi");
-
- What is wrong with this statement? I have NO idea what I'm doing wrong.
- Please help!!!!!!!! Thanks.
-